@echo off

set LCP=.
for %%i in ("lib\commons\*.jar") do call lcp "%%i"
set COMMONS_JARS=%LCP%

set LCP=.
for %%i in ("lib\gson\*.jar") do call lcp "%%i"
set GSON_JARS=%LCP%

set LCP=.
for %%i in ("lib\jetty\*.jar") do call lcp "%%i"
set JETTY_JARS=%LCP%

set LCP=.
for %%i in ("lib\jsch\*.jar") do call lcp "%%i"
set JSCH_JARS=%LCP%

set LCP=.
for %%i in ("lib\quickbuild\*.jar") do call lcp "%%i"
set QUICKBUILD_JARS=%LCP%

set LCP=.
for %%i in ("lib\spring\*.jar") do call lcp "%%i"
set SPRING_JARS=%LCP%

set CLASSES=classes

set JAVA_OPTIONS=-Xms256m -Xmx1024m

set ENTRY_POINT=com.kilman.logger.runner.RunLogger

set classpath=-cp META-INF;"%CLASSES%";"%COMMONS_JARS%";"%GSON_JARS%";"%JETTY_JARS%";"%JSCH_JARS%";"%QUICKBUILD_JARS%";"%SPRING_JARS%"

set COMMAND=java %JAVA_OPTIONS% %classpath% %ENTRY_POINT%

echo %COMMAND%
%COMMAND%